package com.atguigu.order;

import org.springframework.amqp.rabbit.annotation.EnableRabbit;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.session.data.redis.config.annotation.web.http.EnableRedisHttpSession;

/**
 * 结果查看，说明：同一个消息，只能有一个客户端收到
 * 只有当一个消息完全处理完，方法运行结束，客户端才可以接收下一个消息(异步单线程)
 *
 *
 * seata控制分布式事务:
 * 1)、每一个服务必须创建UNDO_LOG 表
 * 2)、安装事务协调器: seata-server 从 https://github.com/seata/seata/releases,下载服务器软件包，将其解压缩。
 *
 */
@EnableFeignClients
@EnableRedisHttpSession
@EnableRabbit
@EnableDiscoveryClient
@SpringBootApplication
public class GulimallOrderApplication {

    public static void main(String[] args) {
        SpringApplication.run(GulimallOrderApplication.class, args);
    }

}
